<template>
  <div class="">我是个组件,父组件传的值为：{{ props.data }}</div>
</template>

<script setup>
import { defineProps } from 'vue'
const props = defineProps({
  data: {
    type: String,
    default: ''
  }
})
</script>

<style scoped></style>